package com.smartstate.dataManagement.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
import com.smartstate.dataManagement.entity.DeviceCarePlanEntity;

import com.smartstate.dataManagement.entity.Equipment;
import com.smartstate.dataManagement.vo.ResultVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public interface DeviceCarePlanService extends ServiceBase<DeviceCarePlanEntity> {

//    Page<DeviceCarePlanEntity> getPlanByNameOrCode(PageDTO<DeviceCarePlanEntity> pageDTO);

    ResultVO<Boolean> addPlan(String deviceName, String deviceCode, String planTime, String careCycle);

    Boolean deleteById(@Param("id") String id);

    Boolean batchDelByIds(List<String> ids);

    Boolean updateByID(DeviceCarePlanEntity deviceCarePlanEntity);

    List<Equipment> getDeviceList(DeviceCarePlanEntity DeviceCarePlanEntity);

    Boolean editPlanByID(String id,String isAdd);
}
